//
//  QuadNode.h
//  Assignment1Q3Q4
//
//  Created by LxL on 2012-10-17.
//
//

#import <Foundation/Foundation.h>
#import "SquareSprite.h"

#define MIN_SIZE 16

@interface QuadNode : NSObject

@property (assign) CGRect bounding;
@property (retain) NSArray *childrens;
@property (retain) QuadNode *parentNode;
@property (retain) NSMutableArray *contentList;


-(void) CreateNodefrom: (QuadNode*) parentNode
            withBoundingBox:(CGRect) boundingBox;
-(void) AddContent:(NSObject*) content;
-(void) DeleteContent:(NSObject*) content;

-(void) UpdateContent:(NSObject*) content ;

-(void) GetContentByTraverseDownAndPutResultIn:(NSMutableArray**)result;

@end
